package com.tensquare.manager;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import util.JwtUtil;

/**
 * @BelongsProject: tensquare_parent
 * @BelongsPackage: com.tensquare.manager
 * @Author: yang
 * @CreateTime: 2019-03-14 10:18
 * @Description: ${Description}
 */

@SpringBootApplication
@EnableEurekaClient  //只要在yml文件配置了eureka 就可以不用加这个注解。由于是初学 所以都加上
@EnableZuulProxy //zuul 注解
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class);
    }
    @Bean
    public JwtUtil jwtUtil(){
        return new JwtUtil();
    }
}
